package com.xk.ucs.modbus;


/**
 * Date:2021/1/1
 * Author：01398017
 * Description: 通用枚举类，代替常量类
 **/
public enum CommonEum {

    PAY_FAILURE(0,"未支付"),
    PAY_SUCCESS(1,"已支付"),
    MODBUS_V_1(1,"1"),
    MODBUS_V_0(0," 0"),
    LOG_DO(1,"打印日志"),
    LOG_UNDO(0,"不打印日志"),
    ORDER_SAVE_URL("/order/save","订单保存"),
    REFUND_ALL_URL("/afterSaleOrder/refund-all","异常直接退款"),
    DEBUG_LOG_URL("/debug/log","日志上传"),
    GET_PAY_RESULT_URL("/order/getOrderPayResult","下位机轮训支付结果"),
    ORDER_PRINT_URL("/order/print/%s","打印小票"),
    SYNC_STOCK_URL("/upper/syncStock","库存同步"),
    INIT_BOX_GOODS_TYPE_URL("/box/getBoxGoodsType","获得盒子商品类型"),
    MODBUS_READ_NUMBER(1,"modbus每次读取一个"),
    MODBUS_LIGHT_MODE_DURATION(1,"灯模式为时间区间"),
    MODBUS_NO_READ(-1,"modbus未读取到"),
    MODBUS_PICKUP_STATUS_SUCCESS("SUCCESS","取货成功"),
    MODBUS_PICKUP_STATUS_FAILURE("FAILURE","取货失败不清空货道"),
    MODBUS_PICKUP_STATUS_TIME_OUT("TIMEOUT","取货超时清空货道"),
    //异常
    ORDER_STATUS_ABNORMAL(0,"异常");
    private int intValue;
    private String stringValue;
    private String des;

    CommonEum(int intValue, String des) {
        this.intValue = intValue;
        this.des = des;
    }

    CommonEum(String stringValue, String des) {
        this.stringValue = stringValue;
        this.des = des;
    }

    public int getIntValue() {
        return intValue;
    }

    public void setIntValue(int intValue) {
        this.intValue = intValue;
    }

    public String getStringValue() {
        return stringValue;
    }

    public void setStringValue(String stringValue) {
        this.stringValue = stringValue;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }


}
